<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFeedbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        /*
            id int 11 反馈 ID
            user_id int 11 用户ID
            content string 255 反馈内容
            created_at timestamp 创建时间
            updated_at timestamp 更新时间
        */

        Schema::create('feedback', function (Blueprint $table) {
            $table->increments('id')->comment('反馈id');
            $table->integer('user_id')->comment('用户id');
            $table->string('content', 255)->comment('反馈内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('feedback');
    }
}
